package www;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import www.prop.DataSourceConfigurationProperties;
import www.prop.DataSourceProperties;

@RestController
@RequestMapping("/hello")
public class HelloController {
    @GetMapping("/h01")
    public String h01(){
        return "Hello SpringBoot!";
    }
    @Autowired
    public DataSourceProperties dataSourceProperties;
    @GetMapping("/h02")
    public Object h02(){
        return dataSourceProperties;
    }
    @Autowired
    public DataSourceConfigurationProperties dataSourceConfigurationProperties;
    @GetMapping("/h03")
    public Object h03(){
        return dataSourceConfigurationProperties;
    }
}
